#ifndef TCP_SERVICE_H
#define TCP_SERVICE_H

#include <iostream>
#include <string>
#include <cstring>
#include <sys/socket.h>
#include <arpa/inet.h>
#include <unistd.h>

#define RTSP_PORT 8554
#define RTP_PORT 12345

class RTSPServer {
   public:
    RTSPServer();
    ~RTSPServer();
    bool init(const std::string& ip_address);
    void start();

   private:
    int rtsp_sock;
    struct sockaddr_in rtsp_address;
    void handle_client(int new_socket);
};

#endif  // TCP_SERVICE_H
